//JavaScript弱类型产生的问题
const obj = {};
obj.foo(); //执行报错 运行阶段才能发现异常

setTimeout(() => {
  obj.foo();
}, 10000000000000); //执行报错 运行阶段才能发现异常

function sum(a, b) {
  return a + b;
}
console.log(sum(100, 100));
console.log(sum(100, "100"));

const obj1 = {};
obj1[true] = 100;
console.log(obj1["true"]);
